package controller;

public class TokensClass {
	private int line;
	private int col;
	private String name;
	private String type;
	//constructor
	public TokensClass (int line ,int col, String name, String type){
		this.line=line;
		this.col=col;
		this.name=name;
		this.type=type;
	}
	//-----------------------
	
	//setters
	public void setLine(int line){
		this.line = line;
	}
	public void setCol(int col){
		this.col = col;
	}
	public void setName(String name){
		this.name=name;
	}
	public void setType(String type){
		this.type = type;
	}
	//-------------------------
	//getters
	public int getLine(){
		return line;
	}
	public int getCol(){
		return col;
	}
	public String getName(){
		return name;
	}
	public String getType(){
		return type;
	}
	//-------------------------
	//toString
	@Override
	public String toString() {   
	    //return "line: " + getLine()s + ", col: " + getCol()+ ", name: " +getName()+ ", type: "+getType() ;
		return name;
	  }
}//end of class
